<?php

use yii\db\Migration;
use yii\db\Schema;

class m170817_055956_add_field_IsInvoice extends Migration
{
    public function up()
    {
        $this->addColumn('{{finance}}', 'is_invoice', Schema::TYPE_INTEGER. "(1) DEFAULT 1 COMMENT '是否开发票 1没有 2有' ");
    }

    public function down()
    {
        echo "m170817_055956_add_field_IsInvoice cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
